libxl: events: Break out libxl__pipe_nonblock, _close
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 21 Jan 2014 14:58:10 +0000 (14:58 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 6 Feb 2014 14:21:03 +0000 (14:21 +0000)
commitd9a20c6040910aeb0910e5c71d45465dccca6923
tree124d33f86aef0d5678c8080fd98c890f9d8acdc1
parent5f0c4a78100382972b4d2a71a04b90e015e9fe87
libxl: events: Break out libxl__pipe_nonblock, _close

Break out the pipe creation and destruction from the poller code
into two new functions libxl__pipe_nonblock and libxl__pipe_close.
Also change direct use of pipe() to libxl_pipe.

No overall functional difference other than minor differences in exact
log messages.

Also move libxl__self_pipe_wakeup and libxl__self_pipe_eatall into the
new pipe utilities section in libxl_event.c; this is pure code motion.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Jim Fehlig <jfehlig@suse.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
--
v3: Mention that we switched pipe() -> libxl_pipe()
tools/libxl/libxl_event.c
tools/libxl/libxl_internal.h